package com.example.teamilkmall.mapper;

import com.example.teamilkmall.entity.Account;
import com.example.teamilkmall.entity.AdminInfo;
import com.example.teamilkmall.entity.TeaInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminInfoMapper {

    List<AdminInfo> listAdminInfo(@Param("pageSize") Integer pageSize, @Param("pageNum") Integer pageNum, @Param("name") String name);

    /**
     * 查询管理员信息列表
     * @return
     */
    List<AdminInfo> listAdminInfoAll();

    void updateAdminInfo(AdminInfo adminInfo);

    void deloneAdmin(Integer id);

    void addAdmin(AdminInfo adminInfo);

    /**
     * 后台登录
     * @param adminInfo
     * @return
     */
    AdminInfo getAdminInfo(@Param("adminInfo") AdminInfo adminInfo);
}
